package com.xieyong.mywebsite.service;


import com.github.pagehelper.PageInfo;
import com.xieyong.mywebsite.model.entity.BaseDict;

import java.util.List;

public interface BaseDictService {
    BaseDict selectOne(Integer id);

    BaseDict selectOneByDictId(String dictId);

    BaseDict selectOneByDictName(String dictId);

    List<BaseDict> selectAll();

    List<BaseDict> selectDictsByTopId(String topId);

    List<BaseDict> selectDictsByPreID(String preId);

    PageInfo<BaseDict> selectPage(Integer pageNum, Integer pageSize, String topId, String preId, String name);

    void insert(BaseDict BaseDict);

    void update(BaseDict BaseDict);

    void delete(Integer id);

    void deleteBatch(List<Integer> ids);

    void switchActive(Integer id);

    void switchBatchActive(List<Integer> ids);
}
